/*
* @Author: Administrator
* @Date:   2017-10-09 16:35:42
* @Last Modified by:   Administrator
* @Last Modified time: 2017-10-24 21:34:25
*/

    layui.use(['jquery','form','layer','laypage','element'], function(){
      var $ = layui.jquery,
          laydate = layui.laydate,
          layer = layui.layer,
          laypage = layui.laypage,
          element = layui.element();

     $(document).on("click", ".left-1", function() {
          layer.open({
            type:2
            ,fix: false
            /*, closeBtn: 0*/
            ,shade:[0.1, '#fff'] //遮罩透明度
            ,area:['359px', '278px']
            ,title:['添加成员','font-weight:600;text-align:center;font-size:16px;']
          ,content: '添加成员.html'
        });
      });
//批量导入
      $(document).on("click", ".left-2", function() {
          layer.open({
            type:2
            ,shade:[0.1, '#fff']
            ,scrollbar: false
            ,area:['350px', '200px']
            ,title:['批量导入用户','font-weight:600;text-align:center;font-size:16px;']
          ,content: '批量导入.html'
        });
      });
//修改
      $(document).on("click", ".add", function() {
          layer.open({
            type:2
            ,shade:[0.1, '#fff']
            ,area:['359px', '278px']
            ,title:['修改信息','font-weight:600;text-align:center;font-size:16px;']
          ,content: '修改.html'
        });
      });
      // 删除操作
        $(document).on("click", ".a4", function() {
          layer.open({
            title:['删除操作','font-weight:600;text-align:center;font-size:16px;']
            ,shade:false //遮罩透明度
            ,content: '您确认要删除吗？'
            ,btn: ['取消', '确认']
            ,yes: function(index, layero){
               layer.closeAll();
          }
          ,btn2: function(index, layero){
              layer.msg('删除成功！',{time: 1000});
          }
        });
      });
    });
